#include "iglobals.h"
#include "imanifs.h"

int false, true;
char *infilename;
int s_count,b_count,filterlevel,active_filters;
int dc1,dc2,dc3,c1,c2,c3;
int brecycle,srecycle,varcount,stpcount,memcount;
int eodch,current_var;
char evalerr,newout;
char fnl,sflag,cflag,iflag,fflag,nflag,dflag,pflag, tflags[TRACEQUAN];
char filterp[30];
int errcount,notfoundcount;
int open_file,file_var,current_strg,u_countvec[MAXVARS],retvec[MAXVARS];
int b_recquan,s_recquan,ddepth,current_inx,current_outx;
int curr_in_mode,curr_out_mode,curr_point,curr_ign,conc;
int memargc;
char **memargv;
unsigned filequan,exprquan,wordquan;
char *ngc_allocbuf;
char *ngc_allocp;
int ngc_allocsize;
int dynasizes[2];
int pid;
int ch ;

char** nametable;
char** wordtable;

FILE            *infile,*current_out,*current_in;
STPPAIR         stp_stack[STPSIZE], *stp_top;

DISPLAYITEM     d_stack[DSIZE];
DISPLAYITEM     *d_top;

VALUE           v_stack[VSIZE];
VALUE           *v_top;

STPSTACK        *phashtab[PHASHSIZE];
STPSTACK        *thashtab[THASHSIZE];
STPSTACK        *shashtab[SHASHSIZE];
STPSTACK        *outside;

IO* io_info[MAXVARS];
IO* current_io;

MEMITEM* nhashtab[NHASHSIZE];

EXPR *filter_e[100];
EXPR **filetable;
EXPR **exprtable;